package com.letfox.ad.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.letfox.ad.dao.ADAppDeviceDao;
import com.letfox.ad.model.ADAppDevice;
import com.letfox.ad.service.ADAppDeviceService;

@Service
public class ADAppDeviceServiceImpl implements ADAppDeviceService {
	
	@Autowired
	private ADAppDeviceDao adAppDeviceDao;

	@Override
	public int deleteByPrimaryKey(Long adDeviceId) {
		return adAppDeviceDao.deleteByPrimaryKey(adDeviceId);
	}

	@Override
	public int insert(ADAppDevice record) {
		return adAppDeviceDao.insert(record);
	}

	@Override
	public ADAppDevice selectByPrimaryKey(Long adDeviceId) {
		return adAppDeviceDao.selectByPrimaryKey(adDeviceId);
	}

	@Override
	public int updateByPrimaryKey(ADAppDevice record) {
		return adAppDeviceDao.updateByPrimaryKey(record);
	}

}
